const state = {
    nm: window.localStorage.getItem('nowNm') || '杭州',
    id: window.localStorage.getItem('nowId') || 50
};
const actions = {

};
// 修改state的方法：
const mutations = {
    CITY_INFO(state, payload) {
        state.nm = payload.nm;
        state.id = payload.id;
    }
}

export default {
    namespaced: true,
    state,
    actions,
    mutations
}